package com.vigor.bear.web.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.vigor.bear.web.bean.Role;

/**
 * 角色持久化接口
 * 
 * @author Alan
 */
@Repository
public interface RoleMapper {
	
    int create(Role role);

    int update(Role role);

    int delete(int rid);
    
    int deleteSelect(String[] rids);

    Role get(int rid);
    
    Role find(String role);

    List<Role> all();
    
    List<Role> all(RowBounds pagination, String sSearch);
}
